<template>
  <div class="stock-list-item">
    <div class="stock-list-item--title">
      {{title}}
    </div>
    <div class="stock-list-item--content">
      <span>项目：{{count}}次 </span><span>总计消耗：{{useSpec}}{{spec}} </span><span>应剩余：{{surplusSpec}}{{spec}} </span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      default: () => "--",
    },
    count: {
      default: () => "--",
    },
    spec: {
      default: () => "",
    },
    useSpec: {},
    surplusSpec: {},
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.stock-list-item {
  display: block;
  margin-bottom: 5px;
  background-color: #fff;
  .stock-list-item--title {
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.2;
    font-size: 18px;
    font-weight: normal;
    padding: 10px 10px 10px;
  }
  .stock-list-item--content {
    padding: 10px;
    font-size: 12px;
    color: #999;
  }
}
</style>
